﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;

namespace Sprout.Schedule.Web.Exceptions
{
    public enum StatusCodeEnum
    {
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 0,
        /// <summary>
        /// 无权限
        /// </summary>
        [Description("无权限")]
        Unauthorized = 401,
        /// <summary>
        /// 统一错误
        /// </summary>
        [Description("默认异常")]
        Error = 1000,
        /// <summary>
        /// 参数验证错误
        /// </summary>
        [Description("参数验证错误")]
        ValidateError = 1001
    }
}
